package com.wql;

import com.wql.service.BookShopService;
import com.wql.service.WqlHaHa;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.util.ArrayList;
import java.util.List;

/**
 * @author wql
 * @version 1.0
 * @date 2022/11/14 19:14
 */

public class Test {
    public static void main(String[] args) {
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("spring.xml");
       // BookShopService bean = context.getBean(BookShopService.class);
      //  bean.purchase("1002","栗毅");

        WqlHaHa bean = context.getBean(WqlHaHa.class);
        List<String> list = new ArrayList<String>();
        list.add("1001");
        list.add("1002");
        bean.buy(list,"栗毅");
    }
}
